<?php

namespace App\Home\Filters;

use Illuminate\Http\Request;

class WorshipBibleVolumeFilter extends Filter
{
public $filterRules = <<< EOF
{
    "id": [
        "equal",
        "?"
    ],
    "full_name": [
        "like",
        "%?%"
    ],
    "short_name": [
        "like",
        "%?%"
    ],
    "kind_sn": [
        "equal",
        "?"
    ],
    "chapter_number": [
        "equal",
        "?"
    ],
    "new_or_old": [
        "equal",
        "?"
    ],
    "pinyin": [
        "equal",
        "?"
    ],
    "created_at": [
        "equal",
        "?"
    ],
    "updated_at": [
        "equal",
        "?"
    ],
    "deleted_at": [
        "equal",
        "?"
    ]
}
EOF;   

    public function __construct(Request $request)
    {
        parent::__construct($request);
        $this->simpleFilters = json_decode($this->filterRules, true);
    }
}
